package com.eshop.modules.user.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eshop.domain.BaseDomain;
import java.math.BigDecimal;
import java.util.Date;

@TableName("user_recharge")
public class UserRecharge extends BaseDomain {
    private BigDecimal givePrice;
    @TableId
    private Long id;
    private String nickname;
    private String orderId;
    private Integer paid;
    private Date payTime;
    private BigDecimal price;
    private String rechargeType;
    private BigDecimal refundPrice;
    private Long uid;

    public void setGivePrice(BigDecimal givePrice2) {
        this.givePrice = givePrice2;
    }

    public void setId(Long id2) {
        this.id = id2;
    }

    public void setNickname(String nickname2) {
        this.nickname = nickname2;
    }

    public void setOrderId(String orderId2) {
        this.orderId = orderId2;
    }

    public void setPaid(Integer paid2) {
        this.paid = paid2;
    }

    public void setPayTime(Date payTime2) {
        this.payTime = payTime2;
    }

    public void setPrice(BigDecimal price2) {
        this.price = price2;
    }

    public void setRechargeType(String rechargeType2) {
        this.rechargeType = rechargeType2;
    }

    public void setRefundPrice(BigDecimal refundPrice2) {
        this.refundPrice = refundPrice2;
    }

    public void setUid(Long uid2) {
        this.uid = uid2;
    }

    public String toString() {
        return "UserRecharge(id=" + getId() + ", uid=" + getUid() + ", orderId=" + getOrderId() + ", price=" + getPrice() + ", givePrice=" + getGivePrice() + ", rechargeType=" + getRechargeType() + ", paid=" + getPaid() + ", payTime=" + getPayTime() + ", refundPrice=" + getRefundPrice() + ", nickname=" + getNickname() + ")";
    }

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof UserRecharge;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserRecharge)) {
            return false;
        }
        UserRecharge other = (UserRecharge) o;
        if (!other.canEqual(this) || !UserRecharge.super.equals(o)) {
            return false;
        }
        Long this$id = getId();
        Long other$id = other.getId();
        if (this$id != null ? !this$id.equals(other$id) : other$id != null) {
            return false;
        }
        Long this$uid = getUid();
        Long other$uid = other.getUid();
        if (this$uid != null ? !this$uid.equals(other$uid) : other$uid != null) {
            return false;
        }
        Integer this$paid = getPaid();
        Integer other$paid = other.getPaid();
        if (this$paid != null ? !this$paid.equals(other$paid) : other$paid != null) {
            return false;
        }
        String this$orderId = getOrderId();
        String other$orderId = other.getOrderId();
        if (this$orderId != null ? !this$orderId.equals(other$orderId) : other$orderId != null) {
            return false;
        }
        BigDecimal this$price = getPrice();
        BigDecimal other$price = other.getPrice();
        if (this$price != null ? !this$price.equals(other$price) : other$price != null) {
            return false;
        }
        BigDecimal this$givePrice = getGivePrice();
        BigDecimal other$givePrice = other.getGivePrice();
        if (this$givePrice != null ? !this$givePrice.equals(other$givePrice) : other$givePrice != null) {
            return false;
        }
        String this$rechargeType = getRechargeType();
        String other$rechargeType = other.getRechargeType();
        if (this$rechargeType != null ? !this$rechargeType.equals(other$rechargeType) : other$rechargeType != null) {
            return false;
        }
        Date this$payTime = getPayTime();
        Date other$payTime = other.getPayTime();
        if (this$payTime != null ? !this$payTime.equals(other$payTime) : other$payTime != null) {
            return false;
        }
        BigDecimal this$refundPrice = getRefundPrice();
        BigDecimal other$refundPrice = other.getRefundPrice();
        if (this$refundPrice != null ? !this$refundPrice.equals(other$refundPrice) : other$refundPrice != null) {
            return false;
        }
        String this$nickname = getNickname();
        String other$nickname = other.getNickname();
        return this$nickname != null ? this$nickname.equals(other$nickname) : other$nickname == null;
    }

    public int hashCode() {
        int i = 43;
        int result = UserRecharge.super.hashCode();
        Long $id = getId();
        int i2 = result * 59;
        int hashCode = $id == null ? 43 : $id.hashCode();
        Long $uid = getUid();
        int i3 = (i2 + hashCode) * 59;
        int hashCode2 = $uid == null ? 43 : $uid.hashCode();
        Integer $paid = getPaid();
        int i4 = (i3 + hashCode2) * 59;
        int hashCode3 = $paid == null ? 43 : $paid.hashCode();
        String $orderId = getOrderId();
        int i5 = (i4 + hashCode3) * 59;
        int hashCode4 = $orderId == null ? 43 : $orderId.hashCode();
        BigDecimal $price = getPrice();
        int i6 = (i5 + hashCode4) * 59;
        int hashCode5 = $price == null ? 43 : $price.hashCode();
        BigDecimal $givePrice = getGivePrice();
        int i7 = (i6 + hashCode5) * 59;
        int hashCode6 = $givePrice == null ? 43 : $givePrice.hashCode();
        String $rechargeType = getRechargeType();
        int i8 = (i7 + hashCode6) * 59;
        int hashCode7 = $rechargeType == null ? 43 : $rechargeType.hashCode();
        Date $payTime = getPayTime();
        int i9 = (i8 + hashCode7) * 59;
        int hashCode8 = $payTime == null ? 43 : $payTime.hashCode();
        BigDecimal $refundPrice = getRefundPrice();
        int i10 = (i9 + hashCode8) * 59;
        int hashCode9 = $refundPrice == null ? 43 : $refundPrice.hashCode();
        String $nickname = getNickname();
        int i11 = (i10 + hashCode9) * 59;
        if ($nickname != null) {
            i = $nickname.hashCode();
        }
        return i11 + i;
    }

    public Long getId() {
        return this.id;
    }

    public Long getUid() {
        return this.uid;
    }

    public String getOrderId() {
        return this.orderId;
    }

    public BigDecimal getPrice() {
        return this.price;
    }

    public BigDecimal getGivePrice() {
        return this.givePrice;
    }

    public String getRechargeType() {
        return this.rechargeType;
    }

    public Integer getPaid() {
        return this.paid;
    }

    public Date getPayTime() {
        return this.payTime;
    }

    public BigDecimal getRefundPrice() {
        return this.refundPrice;
    }

    public String getNickname() {
        return this.nickname;
    }

    public void copy(UserRecharge source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
